<template>
  <div class="appContainer">
    <div class="backImage">
      <div class="headerNavOut">
        <div v-if="metaMaskActive != 99" class="headerNav">
          <p>
            {{ this.metaMaskActiveList[this.metaMaskActive] }}{{ this.network }}
          </p>
        </div>
      </div>
      <header-nav />
      <router-view></router-view>
    </div>
  </div>
</template>

<style scoped lang="scss">
@import "@/asserts/styles/homePage/app.scss";
</style>

<script>
import HeaderNav from "@/containers/common/HeaderNav.vue";
import * as showOut from "@/store/showOutBg.js";
import { mapState } from "vuex";
export default {
  data() {
    return {
      metaMaskActiveList: [
        "请先安装MetaMask钱包插件",
        "请连接钱包以开始使用 BalanceFinance",
        "您拒绝了钱包连接",
        "您连接网络ID：",
        "请先激活MetaMask！",
      ],
      metaMaskActive: 99,
      network: '',
    };
  },
  components: {
    "header-nav": HeaderNav,
  },
  mounted() {},
  methods: {
    hideAppOut() {
      this.$store.commit(showOut.M_UPDATE_OUTBG, false);
    },
    metaMaskActiveFunc(num){
      this.metaMaskActive = num;
    },
    networkFunc(num){
      this.network = num;
    },
  },
  computed: {
    ...mapState(["appOutBg"]),
    //	showTab(){
    //		return this.appOutBg;
    //	}
  },
};
</script>
